package com.blog.system.domain.blog;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.blog.common.annotation.Excel;
import com.blog.common.core.domain.BaseEntity;

/**
 * 博客评论对象 blog_comment
 * 
 * @author shibalover
 * @date 2024-04-02
 */
public class BlogComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 博客评论id */
    @Excel(name = "博客评论id")
    private Long commentId;

    /** 文章id */
    @Excel(name = "文章id")
    private Long articleId;

    /** 发布者id */
    @Excel(name = "发布者id")
    private Long userId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String comment;

    /** 评论状态 */
    @Excel(name = "评论状态")
    private Character status;

    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }
    public void setArticleId(Long articleId) 
    {
        this.articleId = articleId;
    }

    public Long getArticleId() 
    {
        return articleId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }

    public Character getStatus() {
        return status;
    }

    public void setStatus(Character status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("articleId", getArticleId())
            .append("userId", getUserId())
            .append("comment", getComment())
            .append("createTime", getCreateTime())
            .append("status", getStatus())
            .toString();
    }
}
